<?php get_header(); ?>

	<main id="main" class="page-artigo" role="main">
	<!-- section -->
	<section id="content">
	
	<?php if (have_posts()): while (have_posts()) : the_post(); ?>

		<!-- article -->
		<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
			<span class="date"><?php the_time('d.m.Y'); ?> <?php //the_time('g:i a'); ?></span>
			<!-- post title -->
			<h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
			<!-- /post title -->
			<!-- post thumbnail -->
			<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
				<?php the_post_thumbnail('noticia-detalhe'); // Fullsize image for the single post ?>
			<?php endif; ?>
			<!-- /post thumbnail -->
		

			<?php the_content(); // Dynamic Content ?>
			
			

			<?php comments_template(); ?>

		</article>
		<!-- /article -->

	<?php endwhile; ?>

	<?php else: ?>

		<!-- article -->
		<article>

			<h1><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h1>

		</article>
		<!-- /article -->

	<?php endif; ?>

	</section>
	<!-- /section -->
	<?php get_sidebar(); ?>
	</main>


<?php get_footer(); ?>
